﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication5.Admin
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        private DataClassesOnlineCollegeManagementDataContext dc = new DataClassesOnlineCollegeManagementDataContext();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                int idlist = Convert.ToInt32(Request.QueryString["idlist"]);
                list n = this.dc.lists.Single(s => s.idlist == Convert.ToInt32(idlist));

                this.LabelID.Text = n.idlist.ToString();
                
                this.LabelName.Text = n.tenlist.ToString();
            }
        }
    }
}